{include file="common/top"}
<div id="page-wrapper">
    <div id="page-inner">
        <div class="row">
            <div class="col-md-12">
                <h1 class="page-head-line">订单列表</h1>
                <h1 class="page-subhead-line"></h1>

            </div>
        </div>
        <!-- /. ROW  -->

        <div class="row">
            <div class="col-md-6" style="width: 100%">
                <!--   Kitchen Sink -->
                <div class="panel panel-default">
                    <div class="panel-heading">
                        订单管理
                    </div>
                    <div class="panel-body">
                        <div class="panel-heading">
                            <form action="/admin/OrderReason/index" method="post">
                                <input type="datetime-local" value="{}" name="open_time"><span>开仓时间</span>
                                <input type="text" placeholder="请输入要查询的用户名" value="{$sou.nickname}" name="nickname">
                                <input type="submit" value="搜索" name="sousuo">
                                <input type="button" value="导出" name="daochu" onclick="sub()">
                            </form>
                        </div>
                        <div class="table-responsive">
                            <form method="post" action="/admin/orderReason/excel" id="form">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <th>用户名</th>
                                        <th>产品名称</th>
                                        <th>合约量</th>
                                        <th>设定价格</th>
                                        <th>止盈金额</th>
                                        <th>止损金额</th>
                                        <th>手续费</th>
                                        <th>保证金</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {volist name="arr" id = "vo"}
                                    <tr><td style="display:none;"><input type="checkbox" checked name="id[]" value="{$vo.oid}"></td>
                                        <td>{$vo.nickname}</td>
                                        <td> {$vo.symbol_cn}</td>
                                        <td> {$vo.contract_size}</td>
                                        <td> {$vo.price}</td>
                                        <td> {$vo.stop_profit_price}</td>
                                        <td> {$vo.stop_loss_price}</td>
                                        <td> {$vo.service_fee}</td>
                                        <td> {$vo.deposit}</td>
                                    </tr>
                                    {/volist}
                                    <tr>
                                        <td colspan="15">
                                            <div class="pagelist">{$arr->render()|raw}</div>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </form>
                        </div>
                    </div>
                </div>
                <!-- End  Kitchen Sink -->
            </div>
        </div>

    </div>
    <!-- /. PAGE INNER  -->
</div>
<script type="application/javascript">
    function sub() {
        document.getElementById('form').submit();
    }
</script>
{include file="common/out"}